import request from '@/utils/request'

export function bankZh(data) {
    return request({
        url: '/bankInfo/findByLikeHeadBankName',
        method: 'get',
        params: data
    })
}
export function addAgentExpand(data) {
    return request({
        url: '/agentIncr/addAgentExpand',
        method: 'post',
        data
    })
}
export function checkImage(data) {
    return request({
        url: '/checkImage',
        method: 'post',
        data
    })
}
export function uploadMerchantPic(data) {
    return request({
        url: '/uploadMerchantPic',
        method: 'post',
        data
    })
}
export function optimizeAgentExpand(data) {
    return request({
        url: '/agentIncr/optimizeAgentExpand',
        method: 'post',
        data
    })
}
export function queryList(data) {
    return request({
        url: '/agent/findBySubAgent',
        method: 'get',
        params: data
    })
}
export function costInterval(data) {   // 修改费率 成本等区间
    return request({
        url: '/agentCostInfo/costInterval',
        method: 'get',
        params: data
    })
}
export function lowerAgentCost(data) {
    return request({
        url: '/agentCostInfo/getLowerAgentCost',
        method: 'get',
        params: data
    })
}
export function configCost(data) {
    return request({
        url: '/agentCostInfo/configCost',
        method: 'post',
        data
    })
}
export function lowerAgentBack(data) {
    return request({
        url: '/agentBackInfo/getLowerAgentBack',
        method: 'get',
        params:data
    })
}
export function agentBackInfoCostInterval(data) {
    return request({
        url: '/agentBackInfo/costInterval',
        method: 'get',
        params: data
    })
}
export function saveBackInfo(data) {
    return request({
        url: '/agentBackInfo/saveBackInfo',
        method: 'post',
        data
    })
}
export function lowerAgentBackOther(data) {
    return request({
        url: '/agentBackOther/getLowerAgentBackOther',
        method: 'get',
        params:data
    })
}
export function backOtherInterval(data) {
    return request({
        url: '/agentBackOther/backOtherInterval',
        method: 'get',
        params: data
    })
}
export function saveBackInfoOther(data) {
    return request({
        url: '/agentBackOther/saveBackInfo',
        method: 'post',
        data
    })
}
// 获取调价配置
export function getAgentTjProfit(data) {
    return request({
        url: '/agentTjProfit/getAgentTjProfit',
        method: 'post',
        data
    })
}
// 保存调价配置
export function configTjProfit(data) {
    return request({
        url: '/agentTjProfit/configTjProfit',
        method: 'post',
        data
    })
}
// 二年流量卡
export function getManySimBackInfo(data) {
    return request({
        url: '/agentBackOther/getManySimBackInfo',
        method: 'post',
        data
    })
}
// 保存二年流量卡配置
export function saveManySimBackInfo(data) {
    return request({
        url: '/agentBackOther/saveManySimBackInfo',
        method: 'post',
        data
    })
}